// goods 商品
const db = require('./db/db');
//模型文件
const GoodsModel = require('./models/GoodsModel');
//导入 goods.json
const goodsArr = require('./db/json/goods.json');

db(() => {
  //批量插入
  GoodsModel.insertMany(goodsArr, (err, data) => {
    if(err) throw err;
    console.log('插入成功');
  });
})